<div id="loaderContainer">
    <div id="loader"></div>
</div>
<div id="folderContent">
{if $medias|@count gt 0}
{assign var="counter" value=1}
{foreach from=$medias item=folder}
	<div id="researchCategoryTitle">{icon name="folder.png"} {$folder.title}</div>
    <ul id="imagesCont">
	{foreach from=$folder.medias item=media}
        <li id="{$media->getLang()|lower}_{$media->getUniqueId()}" class="imageContainer {$counter}">
            <div class="image">
                {if $media->isImage()}
                <img src="{$media->getMceIcon()}" alt="{$media->getLabel()}" title="{$media->getLabel()}" />
                {else}
                {icon name=$media->getIcon()}
                {/if}
            </div>
        </li>
        {assign var="counter" value=$counter+1}
	{/foreach}
    </ul>
{/foreach}
{else}
	<div style="padding:10px;">
		{t}No results{/t}.
	</div>
{/if}
</div>
<div style="display: none" id="nbMedia">{$nbMedia}</div>